package com.example.demo.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.dao.GoodDao;
import com.example.demo.entity.Good;
import com.example.demo.service.GoodService;

@Service
public class GoodServiceImpl implements GoodService {
	@Autowired
	private GoodDao goodDao;

	@Override
	public List<Good> getGoods() {
		List<Good> goods = goodDao.getGoods();
		return goods;
	}

	@Override
	public List<Good> getGoodsUpper(float price) {
		List<Good> goods = goodDao.getGoodsUpper(price);
		return goods;
	}
}
